/* printButton chrli*/
define([
    'dojo/_base/declare',
    'dojo/_base/lang',
    'dojo/topic',
    "dojo/dom-construct"
], function (declare, lang, topic, domConstruct) {

    return declare(null, {
        map: null,
        constructor: function (options, node) {
            this.options = options;
            this.parentNode = node;
        },
        startup: function () {
            document.getElementById('addressButton').addEventListener("click", lang.hitch(this, '_showAddressDiv'));
            document.getElementById('addressCloseBtn').addEventListener("click", lang.hitch(this, '_closeAddressDiv'));
            map = this.options.map;
        },
        _showAddressDiv: function () {
            if ((dojo.hasClass(document.getElementById("addressDiv"), "displayNone"))) {
                dojo.removeClass(document.getElementById('addressDiv'), 'displayNone');
            }
            else {
                dojo.addClass(document.getElementById('addressDiv'), 'displayNone');

            }
        },
        _closeAddressDiv: function () {
            dojo.addClass(document.getElementById('addressDiv'), 'displayNone');
        }
    });
});